package com.example.dangerouscargodriver.event;

import com.google.gson.Gson;

import java.io.Serializable;

public class RunningStatus implements Serializable {
    private int what;
    private Object obj;
    private String comment;

    public int getWhat() {
        return what;
    }

    public void setWhat(int what) {
        this.what = what;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return "RunningStatus{" +
                "what=" + what +
                ", obj=" + obj +
                ", comment='" + comment + '\'' +
                '}';
    }

    public String toJson(){
        Gson gson = new Gson();
        return gson.toJson(this);
    }
}
